import http from "@/utils/http";

//首页-广告区域-轮播图
//distributionSite 首页=1 分类页面=2
export const getHomeBanner = (distributionSite = 1) => {
    return http({
        url: "/home/banner",
        data: {
            distributionSite
        }
    })
}
//首页-广告区域-前台类目
export const getHomeCategoryMutli = () => {
    return http({
        url: "/home/category/mutli",
    })
}
//首页-热门推荐-小程序
export const getHomeHotMutli = () => {
    return http({
        url: "/home/hot/mutli",
    })
}
//首页-新鲜好物-小程序
export const getHomeNew = () => {
    return http({
        url: "/home/new",
    })
}

//猜你喜欢-小程序
export const getHomeGoodsGuessLike = (data) => {
    return http({
        url: "/home/goods/guessLike",
        data,
    })
};

//首页点击跳转
export const getHomeRecommend = (url, data = {}) => {
    return http({
        url,
        data,
    })
}